import axios from 'axios'
axios.defaults.baseURL = "https://bjwz.bwie.com/wipi"

axios.interceptors.request.use((config:any) => {
    config.headers.Authorization = "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZjNGI3NjNmLTE4MDEtNGI4NC04MGQxLTMxMDEzYmIwYjA3OCIsIm5hbWUiOiJhZG1pbiIsImVtYWlsIjpudWxsLCJyb2xlIjoiYWRtaW4iLCJpYXQiOjE2NzE1ODk5MDEsImV4cCI6MTY3MTYwNDMwMX0.psBSzi0mz_E6KguXUQqF5N50XWw68UW_FpGS3NqnZu0"
    return config
})

axios.interceptors.response.use((data) => {
    return data.data
})

export default axios